//引入要返回的mock文件
const mockJsonList = require("./mock/list.json");
module.exports = {
  devServer: {
    before(app) {
      //创建Mock接口
      app.get("/goods/list", (req, res) => {
        res.json({
          data: mockJsonList
        });
      });
    }
  }
};
